package com.lizhen.behaviorpattern.templatepattern;

public abstract class Game {
    public Game() {
    }

    abstract void initialize();

    abstract void startPlay();

    abstract void endPlay();

    public final void play() {
        this.initialize();
        this.startPlay();
        this.endPlay();
    }
}
